package com.kymatrix.kycarbon.xsmd.kbpm.server.model.enums;


import com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum;

import static com.kymatrix.kycarbon.xsmd.common.business.common.BaseBusinessEnum.SysConfigGroupName.WF_PROCESS_TASK_STATE;

/**
 * 任务状态枚举
 */
public enum ProcessTaskStateEnum implements BaseBusinessEnum {
    DOING("10","进行中"),
    FINISHED("20", "已完成"),
    WITHDRAW("30", "已撤回"),
    INTERRUPT("40", "强行终止"),
    PENDING("50","挂起"),
    ABANDON("99","已废弃")
    ;
    private final String code;

    private final String name;


    ProcessTaskStateEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getSysConfigGroupName() {
        return WF_PROCESS_TASK_STATE;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
